# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pycipher
_pkgname=pycipher
pkgver=0.5.2
pkgrel=6
pkgdesc='Several simple cipher algorithms.'
arch=('any')
url='https://github.com/jameslyons/pycipher'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
sha512sums=('693fed1a375878a1354f50767caecbf87d8b602f69b974e51e03f8df42e6912b2f44a9959fd30a7c209bd28f4d7fc41cd7cac682ca580cf0ef40bf363a91bd6b')

build() {
  cd $_pkgname-$pkgver

  python setup.py build
}

package() {
  cd $_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

